// -----------------------------------------------------------------------------
// Generate By Furion Tools v1.6.0                            
// -----------------------------------------------------------------------------

using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;

#nullable disable

namespace iemtm.WeChat.Core
{
    public partial class Language : IEntity<MasterDbContextLocator>, IEntityTypeBuilder<Language, MasterDbContextLocator>
    {

        public int Id { get; set; }
        public string LStr { get; set; }
        public string Description { get; set; }
        public string Language_zh { get; set; }
        public string Language_en { get; set; }
    
        public void Configure(EntityTypeBuilder<Language> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
                entityBuilder.HasKey(e => e.LStr)
                    .HasName("PK__Language__75F1AB810010D586");

                entityBuilder.Property(e => e.LStr)
                    .HasMaxLength(100)
                    .IsUnicode(false);

                entityBuilder.Property(e => e.Description).HasMaxLength(100);

                entityBuilder.Property(e => e.Id).ValueGeneratedOnAdd();

                entityBuilder.Property(e => e.Language_en).HasMaxLength(500);

                entityBuilder.Property(e => e.Language_zh).HasMaxLength(500);
        }

    }
}

